package ihotel

class Funcionario {
	
	String nome
	String cargo
	String setor
	String login
	String senha
	
	static constraints = {
		nome(length:2..100, blank:false)
		cargo(length:2..100, blank:false)
		setor(length:2..100, blank:false)
		login(length:6..10, blank:false, unique:true)
		senha(length:8..20, blank:false, password:true)
	}
}
